// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Less from 'less'
import Vuex from 'vuex'
import App from './App'
import router from './router'
import VueSwiper from 'vue-awesome-swiper'
import MintUi from 'mint-ui'
import axios from 'axios'

//mint ui lib
import { swiper, swiperSlide } from 'vue-awesome-swiper';
import { Indicator } from 'mint-ui';
import { Toast } from 'mint-ui';

//CSS lib
import 'mint-ui/lib/style.css'
import 'font-awesome/css/font-awesome.css'

//common js fun
//共用函数
import commonFun from '../static/common.js'

//Vuex files
import cart from './vuex/cart.js'
import collection from './vuex/collection.js'
import count from './vuex/count.js'

Vue.use(commonFun)
Vue.use(VueSwiper)
Vue.use(MintUi)
Vue.use(Vuex)

Vue.config.productionTip = false
Vue.prototype.$ajax = axios
Vue.prototype.Indicator = Indicator
Vue.prototype.Toast = Toast

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  //axios,
  store: {
    cart: cart,
    collection: collection,
    count: count
  },
  template: '<App/>',
  components: {
    App,
    swiper,
    swiperSlide
  }
})